const BaseModel = require('../libs/baseModel.js');
const model = new BaseModel();
const utils = require('../libs/utils.js');

let _Schema = new model.Schema({
    title: String,  // 消息应用模板标题
    company_id: String, // 医院或者公司ID
    app_id: String, // 应用id
    agent_id: String, // 企业微信配置的id
    service_for_type: {type: String, rquired: true, enum: ["company_no", "service_no"]}, // 服务所属类型 company_no企业号, service_no 服务号
    created: String,
    service_url: String, // 服务号的推送请求地址
    modified: String
});

model.schema = model.mongoose.model('msg_templates', _Schema);